﻿using Product.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Text;

namespace Product.EntityFrameworkCore.PO
{
    public class CategoryPo
    {

        public CategoryPo() 
        {
            ChildCategoryList = new List<CategoryPo>();
        }

        public string Id { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public long Version { get; set; }

        /// <summary>
        /// 父级id
        /// </summary>
        public string ParentId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 分类层级
        /// </summary>
        public int CategoryLevel { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 父级分类
        /// </summary>
        public virtual CategoryPo ParentCategory { get; set; }

        /// <summary>
        /// 子级分类
        /// </summary>
        public virtual List<CategoryPo> ChildCategoryList { get; set; }
    }
}
